<template>
  <table class="table" width="100%" cellspacing="0">
    <thead class="header">
    <th v-for="item in column" :key="item.prop">{{ item.label }}</th>
    </thead>
    <tbody class="body">
    <tr style="text-align: center">
      <td v-for="item in column" :key="item.prop">{{ data[item.prop] }}</td>
    </tr>
    </tbody>
  </table>
</template>

<script>
export default {
  name: "tables",
  props: {
    column: {
      type: Array,
      default: () => []
    },
    data: {
      type: Object,
      default: () => {}
    }
  },
}
</script>

<style lang="less" scoped>

</style>
